package compressutil

import (
	"bytes"
	"compress/lzw"
)

func LZWCompress(data string) string {
	a := make([]byte, 1)
	buf := bytes.NewBuffer(a)
	w := lzw.NewWriter(buf, lzw.LSB, 8)
	defer w.Close()
	w.Write([]byte(data))
	return string(a)
	// return string(buf.Bytes())
}
